const app = getApp()
Component({
  properties: {
    // 这里定义了innerText属性，属性值可以在组件使用时指定
    number: {
      type: Number,
      // value: '',
    },
   
  },
  data: {
    tabList:[
        {
          "text": "首页",
          "pagePath": "/pages/home/index/index",
          "iconPath": "/img/home.png",
          "selectedIconPath": "/img/home-icon.png"
        },
        {
          "text": "互助",
          "pagePath": "/pages/help/index/index",
          "iconPath": "/img/help.png",
          "selectedIconPath": "/img/help-icon.png"
        },
        {
          "text": "消息",
          "pagePath": "/pages/message/message",
          "iconPath": "/img/msg.png",
          "selectedIconPath": "/img/msg-icon.png"
        },
        {
          "text": "我的",
          "pagePath": "/pages/userInfo/index/index",
          "iconPath": "/img/user.png",
          "selectedIconPath": "/img/user-icon.png"
        }
      ],
  },

  ready: function (options) {
    console.log(this.data.number,"传参红包详情")
    // this.setData({
    //   statusBarHeight:app.globalData.statusBarHeight,
    //   titleBarHeight:app.globalData.titleBarHeight,
    // })
  },

  methods: {
    jumpTab(e){
      console.log(e)
      wx.switchTab({
        url: e.currentTarget.dataset.item.pagePath,
      })
    }
  }
})